package com.example.bankmanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bankmanage.dto.rep.AccountExportReqDTO;
import com.example.bankmanage.entity.accounts;
import com.github.pagehelper.Page;
import io.reactivex.rxjava3.annotations.BackpressureSupport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AccountMapper extends BaseMapper<accounts> {

    Page<accounts> fetchAccountList(@Param("accountNumber") String accountNumber, @Param("accountType") String accountType, @Param("status") String status);
    @Select("select * from accounts")
    Page<accounts> accountList();

    List<accounts> selectAccountsForExport(AccountExportReqDTO exportDTO);
}
